package com.baizhi.dao;

import com.baizhi.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {
    public List<Book> selectAllBookByPages(@Param("key") String key, @Param("content") String content);

    public void addBook(Book book);

    public Book selectBookById(String bookId);

    public void updateBook(Book book);

    public void deleteBookById(String bookId);




    public List<Book> selectByRecommend();

    public List<Book> selectByHotSale();

    public List<Book> selectByNewBook();

    public List<Book> selectByNewBookHotSale();

    public List<Book> selectBookByCategoryId(@Param("firstId") String firstId,@Param("secondId")String secondId);
}
